/*--------------------------------------------------------------------------------------*\
**
** adv_blacksmith.h
**
** Heroes IV
** Copyright 2000, The 3DO Company
**
\*--------------------------------------------------------------------------------------*/

#ifndef ADV_KEYMASTER_H_INCLUDED
#define ADV_KEYMASTER_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "hero.h"
#include "single_use_object.h"

class t_army;
class t_button;
class t_player;
class t_text_window;
class t_toggle_button;
class t_town;

// Adventure object keymaster class.
class t_adv_keymaster_tent : public t_single_use_object
{
public:
                
    t_adv_keymaster_tent(  std::string const& source, t_qualified_adv_object_type const& type );
    void			activate_trigger( t_army* army, t_adv_map_point const& point, 
		                               t_direction direction, t_adventure_frame* frame );

	virtual float	ai_value( t_adventure_ai const& ai, t_creature_array const& army, int move_cost ) const;
	int			get_guard_color() const;

protected:
	virtual void visit( t_hero* hero );
	virtual std::string get_balloon_help() const;

    int         m_guard_color;
};

inline int t_adv_keymaster_tent::get_guard_color() const
{
	return m_guard_color;
}

#endif // ADV_KEYMASTER_H_INCLUDED

